Skip to content

Conversation

@not-lain
Copy link
Contributor

@not-lain not-lain commented Jun 2, 2025

minor improvement to the matanyone code snippet following pq-yang/MatAnyone#35 adding the second method for loading the model using the InferenceCore a class that automatically loads the model and easily processes videos.
this snippet is intended to be used as follows :

from matanyone.inference.inference_core import InferenceCore
processor = InferenceCore("PeiqingYang/MatAnyone")

# foreground_path, alpha_path = processor.process_video(
#     input_path = "inputs/video/test-sample1.mp4",
#     mask_path = "inputs/mask/test-sample1.png",
#     output_path = "outputs"
# )

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @not-lain !

@Wauplin Wauplin merged commit 7cb9528 into huggingface:main Jun 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants